import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Resource } from './entities/resource.entity'; // 确保路径正确
import { ResourceService } from './resource.service';
import { ResourceController } from './resource.controller';

@Module({
    imports: [TypeOrmModule.forFeature([Resource])],
    providers: [ResourceService],
    controllers: [ResourceController]
})
export class ResourceModule { }